/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc.controller;

import cn.yzc.APP;
import cn.yzc.pojo.Result;
import cn.yzc.service.PersonnelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * <p>Project: SpringMVCPro - PersonnelController</p>
 * <p>Powered by yzc On 2023-10-28 10:00:55</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@RestController
public class PersonnelController {
    @Autowired
    PersonnelService personnelService;


    @PostMapping ("/login")
    public Result queryAccount( String account, String password){
        Map map =personnelService.queryAccount(account,password);
        return Result.success(map);
    }

    @RequestMapping("/hello")
    public String hello(){
        System.out.println("你好");
        return "haha";
    }


}
